#include <memory>
#include "HttpServer.hpp"

int main(int argc, char* argv[] )
{
    if(argc != 2)
    {
        cout<<"HttpServer port"<<endl;
        exit(1);
    }
    uint16_t port = stoi(argv[1]);//命令行参数 argv是字符串  要将argv[1]转换为uint16_tle类型
    unique_ptr<HttpServer> hs(new HttpServer(port));
    hs->Start();
    return 0;
}